#include "ChannelHandlerAdapter.h"

#include <iostream> // for log 

namespace frame {

ChannelHandlerAdapter::~ChannelHandlerAdapter() {
    std::cout << "ChannelHandlerAdapter destructor" << std::endl;
}

void ChannelHandlerAdapter::connected(IChannel::Ptr channel) {
    std::cout << "ChannelHandlerAdapter:connected" << std::endl;
}
void ChannelHandlerAdapter::connectFailed(IChannel::Ptr channel, int error) {
    std::cout << "ChannelHandlerAdapter:connectFailed" << std::endl;
}
void ChannelHandlerAdapter::disconnected(IChannel::Ptr channel, int error) {
    std::cout << "ChannelHandlerAdapter:disconnected" << std::endl;
}

void ChannelHandlerAdapter::read(IChannel::Ptr channel, const char * buf,  std::size_t size) {
    std::cout << "ChannelHandlerAdapter:read" << std::endl;
}
void ChannelHandlerAdapter::readException(IChannel::Ptr channel, int error) {
    std::cout << "ChannelHandlerAdapter:readException" << std::endl;
}

void ChannelHandlerAdapter::writed(IChannel::Ptr channel, std::size_t size) {
    std::cout << "ChannelHandlerAdapter:writed" << std::endl;
}
void ChannelHandlerAdapter::writeException(IChannel::Ptr channel, int error) {
    std::cout << "ChannelHandlerAdapter:writeException" << std::endl;
}

} //end of namespace frame
